import AutomaticRecode from "../../Commons/AutomaticRecode";

export default class CharacterTemplate extends AutomaticRecode {

    id: number;
    characterName: string;
    criticalDamage: number;
    moveSpeed: number;
    attack: number;
    critical: number;
    health: number;
    resName: string;
    combatTime: number;
    /**player = 0, enemy = 1 */
    characterType: number;
    /**
     * 单位类型（1=轻型->提升50%移动速度，2中型->提升20%移动速度和20%重量，3=重型->提升10%攻击、50%重量，减少25%移动速度）
     */
    unitType: number;
    attackGrow: number;
    healthGrow: number;
    reward: number;
    constructor(value: any) {
        super();
        this.init(value);
    }
}
